<%@ page import="com.xxxx.entity.vo.MessageModel" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
  <title>写博客</title>
=======
  <title>写留言</title>
>>>>>>> 2c9a92f (新增删除博客功能)
=======
  <title>写留言</title>
>>>>>>> a05f6f6 (密码密文存储)
=======
  <title>写留言</title>
>>>>>>> 2acfcf7 (详情页)
=======
  <title>写留言</title>
>>>>>>> d93a5bb (移除index页)
  <style>
    /* 基础样式 */
    body {
      margin: 0;
      font-family: 'Segoe UI', system-ui;
      min-height: 100vh;
      background: linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.9)), url('pic/bg.jpg');
      background-size: cover;
      background-attachment: fixed;
      color: #333;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    /* 表单容器 */
    .form-container {
      background: rgba(255,255,255,0.95);
      border-radius: 12px;
      padding: 2rem;
      box-shadow: 0 4px 20px rgba(0,0,0,0.1);
      max-width: 600px;
      width: 100%;
    }

    .form-title {
      color: #2c3e50;
      margin-top: 0;
      font-size: 2rem;
      text-align: center;
    }

    /* 表单样式 */
    .form-group {
      margin-bottom: 1.5rem;
    }

    .form-group label {
      display: block;
      margin-bottom: 0.5rem;
      font-weight: 600;
      color: #2c3e50;
    }

    .form-group input,
    .form-group textarea {
      width: 100%;
      padding: 0.8rem;
      border: 1px solid #ddd;
      border-radius: 8px;
      font-size: 1rem;
      transition: border-color 0.3s ease;
    }

    .form-group input:focus,
    .form-group textarea:focus {
      border-color: #3498db;
      outline: none;
    }

    .form-group textarea {
      resize: vertical;
      min-height: 150px;
    }

    /* 按钮样式 */
    .form-actions {
      text-align: center;
    }

    .btn {
      padding: 0.8rem 1.5rem;
      border: none;
      border-radius: 25px;
      cursor: pointer;
      transition: transform 0.2s, box-shadow 0.2s;
      text-decoration: none;
      font-size: 1rem;
    }

    .btn-primary {
      background: #3498db;
      color: white;
    }

    .btn-primary:hover {
      transform: translateY(-2px);
      box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }

    /* 错误提示 */
    .error-message {
      color: #e74c3c;
      text-align: center;
      margin-bottom: 1rem;
    }
  </style>
</head>
<body>
<div class="form-container">
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
  <h1 class="form-title">✍️ 发布新博客</h1>
=======
  <h1 class="form-title">✍️ 发布留言</h1>
>>>>>>> 2c9a92f (新增删除博客功能)
=======
  <h1 class="form-title">✍️ 发布留言</h1>
>>>>>>> a05f6f6 (密码密文存储)
=======
  <h1 class="form-title">✍️ 发布留言</h1>
>>>>>>> 2acfcf7 (详情页)
=======
  <h1 class="form-title">✍️ 发布留言</h1>
>>>>>>> d93a5bb (移除index页)

  <%-- 显示错误信息 --%>
  <% if (session.getAttribute("msgModel") != null) {
    MessageModel mm = (MessageModel) session.getAttribute("msgModel");
    session.removeAttribute("msgModel");
  %>
  <div class="error-message">⚠️ <%= mm.getMsg() %></div>
  <% } %>

  <form action="blog" method="post">
    <div class="form-group">
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
      <label for="title">标题</label>
      <input type="text" id="title" name="title" required placeholder="请输入博客标题">
=======
      <label for="title">主题</label>
      <input type="text" id="title" name="title" required placeholder="请输入留言主题">
>>>>>>> 2c9a92f (新增删除博客功能)
=======
      <label for="title">主题</label>
      <input type="text" id="title" name="title" required placeholder="请输入留言主题">
>>>>>>> a05f6f6 (密码密文存储)
=======
      <label for="title">主题</label>
      <input type="text" id="title" name="title" required placeholder="请输入留言主题">
>>>>>>> 2acfcf7 (详情页)
=======
      <label for="title">主题</label>
      <input type="text" id="title" name="title" required placeholder="请输入留言主题">
>>>>>>> d93a5bb (移除index页)
    </div>

    <div class="form-group">
      <label for="content">内容</label>
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
      <textarea id="content" name="content" required placeholder="请输入博客内容"></textarea>
=======
      <textarea id="content" name="content" required placeholder="请输入留言内容"></textarea>
>>>>>>> 2c9a92f (新增删除博客功能)
=======
      <textarea id="content" name="content" required placeholder="请输入留言内容"></textarea>
>>>>>>> a05f6f6 (密码密文存储)
=======
      <textarea id="content" name="content" required placeholder="请输入留言内容"></textarea>
>>>>>>> 2acfcf7 (详情页)
=======
      <textarea id="content" name="content" required placeholder="请输入留言内容"></textarea>
>>>>>>> d93a5bb (移除index页)
    </div>

    <div class="form-actions">
      <button type="submit" class="btn btn-primary">🚀 发布</button>
    </div>
  </form>
</div>
</body>
</html>